<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/views/main-navbar.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\index.html">All files</a> / <a href="index.html">src/views</a> main-navbar.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/39</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/16</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/21</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/29</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114</td><td class="line-coverage quiet"><span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;<span class="cstat-no" title="statement not covered" >t<span class="fstat-no" title="function not covered" >em</span>plate&gt;</span>
  &lt;nav class="site-navbar" :class="'site-navbar--' + navbarLayoutType"&gt;
    &lt;div class="site-navbar__header"&gt;
<span class="cstat-no" title="statement not covered" >      &lt;h1 class="site-navbar__brand" @click="$router.push({ name: 'home' })"&gt;</span>
        &lt;a class="site-navbar__brand-lg" href="javascript:;"&gt;人人快速开发平台&lt;/a&gt;
        &lt;a class="site-navbar__brand-mini" href="javascript:;"&gt;人人&lt;/a&gt;
      &lt;/h1&gt;
    &lt;/div&gt;<span class="cstat-no" title="statement not covered" ></span>
    &lt;div class="site-navbar__body clearfix"&gt;
      &lt;el-menu<span class="cstat-no" title="statement not covered" ></span>
        class="site-navbar__menu"
        mode=<span class="cstat-no" title="statement not covered" >"horizontal"&gt;</span>
        &lt;el-menu-item class="site-navbar__switch" index="0" @click="sidebarFold = !sidebarFold"&gt;
<span class="fstat-no" title="function not covered" >          &lt;icon-svg name="zhedie</span>"&gt;&lt;/ico<span class="cstat-no" title="statement not covered" >n-svg&gt;</span>
        &lt;/el-menu-item&gt;
      &lt;/el-menu&gt;
      &lt;el-menu
        class="site-navbar__menu site-navbar__menu--right"
        mode="horizontal"&gt;
        &lt;el-menu-item index="1" @click="$router.push({ name: 'theme' })"&gt;
          &lt;template slot="title"&gt;
            &lt;el-badge value="new"&gt;
              &lt;icon-svg name="shezhi" class="el-icon-setting"&gt;&lt;/icon-svg&gt;
            &lt;/el-badge&gt;
          &lt;/template&gt;
        &lt;/el-menu-item&gt;
        &lt;el-menu-item index="2"&gt;
          &lt;el-badge value="hot"&gt;
            &lt;a href="//www.renren.io/" target="_blank"&gt;官方社区&lt;/a&gt;
          &lt;/el-badge&gt;
        &lt;/el-menu-item&gt;
        &lt;el-submenu index="3"&gt;
          &lt;template slot="title"&gt;Git源码&lt;/template&gt;
          &lt;el-menu-item index="2-1"&gt;&lt;a href="//github.com/daxiongYang/renren-fast-vue" target="_blank"&gt;前端&lt;/a&gt;&lt;/el-menu-item&gt;
          &lt;el-menu-item index="2-2"&gt;&lt;a href="//git.oschina.net/renrenio/renren-fast" target="_blank"&gt;后台&lt;/a&gt;&lt;/el-menu-item&gt;
          &lt;el-menu-item index="2-3"&gt;&lt;a href="//git.oschina.net/renrenio/renren-generator" target="_blank"&gt;代码生成器&lt;/a&gt;&lt;/el-menu-item&gt;
        &lt;/el-submenu&gt;
        &lt;el-menu-item class="site-navbar__avatar" index="3"&gt;
          &lt;el-dropdown :show-timeout="0" placement="bottom"&gt;
            &lt;span class="el-dropdown-link"&gt;
              &lt;img src="~@/assets/img/avatar.png" :alt="userName"&gt;{{ userName }}
            &lt;/span&gt;
            &lt;el-dropdown-menu slot="dropdown"&gt;
              &lt;el-dropdown-item @click.native="updatePasswordHandle()"&gt;修改密码&lt;/el-dropdown-item&gt;
              &lt;el-dropdown-item @click.native="logoutHandle()"&gt;退出&lt;/el-dropdown-item&gt;
            &lt;/el-dropdown-menu&gt;
          &lt;/el-dropdown&gt;
        &lt;/el-menu-item&gt;
      &lt;/el-menu&gt;
    &lt;/div&gt;
    &lt;!-- 弹窗, 修改密码 --&gt;
    &lt;update-password v-if="updatePassowrdVisible" ref="updatePassowrd"&gt;&lt;/update-password&gt;
  &lt;/nav&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
  import UpdatePassword from './main-navbar-update-password'
  import { clearLoginInfo } from '@/utils'
  export default {
    data () {
      return {
        updatePassowrdVisible: false
      }
    },
    components: {
      UpdatePassword
    },
    computed: {
      navbarLayoutType: {
        get () { return this.$store.state.common.navbarLayoutType }
      },
<span class="cstat-no" title="statement not covered" >      sidebarFold: {</span>
        get () { <span class="fstat-no" title="function not covered" >retur</span>n this.$store.state.common.sidebarFold },
<span class="cstat-no" title="statement not covered" >        set (val) { this.$store.commit('common/updateSidebarFold', val) }</span>
      },
      mainTabs: {
        get () { return this.$store.state.common.mainTabs },
        set (val) { this.$store.commit('common/updateMainTabs', val) }
      },
      userName: {
        get () { return this.$store.state.user.name }
      }
    },
    methods: {<span class="fstat-no" title="function not covered" ></span>
      //<span class="cstat-no" title="statement not covered" > 修改密码</span>
      updatePasswordHandle () {
        this.updatePassowrdVisible = true
        this.$nextTick(() =&gt; {
          this.$refs<span class="fstat-no" title="function not covered" >.upd</span>atePassowrd.init()
<span class="cstat-no" title="statement not covered" >        })</span>
      },
      // 退出<span class="fstat-no" title="function not covered" ></span>
      lo<span class="cstat-no" title="statement not covered" >goutHandle () {</span>
        this.$confirm(`确定进行[退出]操作?`, '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'war<span class="fstat-no" title="function not covered" >ning</span>'
<span class="cstat-no" title="statement not covered" >        }).then(() =&gt; {</span>
          this.$http({
            url: thi<span class="fstat-no" title="function not covered" >s.$h</span>ttp.adornUrl('/sys/logout'),
<span class="cstat-no" title="statement not covered" >            method: 'post',</span>
            data: this.$http.adornData()
          }).then(({data}) =&gt; {
            if (data &amp;&amp; data.code === 0) {
              clearL<span class="fstat-no" title="function not covered" >ogin</span>Info()
<span class="cstat-no" title="statement not covered" >              this.$router.push({ name: 'log</span>in' })
            }
          })
        }).catch(() =&gt; {})
      }
    }
  }<span class="fstat-no" title="function not covered" ></span>
&lt;/script&gt;<span class="cstat-no" title="statement not covered" ></span>
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Thu Sep 20 2018 10:14:21 GMT+0800 (中国标准时间)
</div>
</div>
<script src="..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\sorter.js"></script>
</body>
</html>
